<%-- 
    Document   : ThemSanPham
    Created on : Apr 18, 2011, 5:50:09 PM
    Author     : ToanNhan
--%>

<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../js/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="script/themsanpham.js"></script>

<%request.setCharacterEncoding("UTF-8");%>
<form method="POST" name="frm" action="/WebsiteBanHang/ThemSanPham" onsubmit="return validate();">
    <table width="720">
        <tr align="center">
            <td width="80%">
                <table width="100%">
                    <tr>
                        <td colspan="2">
                            <span style="padding-left: 20px"><font size="+3" color="RED">Thông tin sản phẩm</font> </span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>                  
                    <tr bgcolor="bisque">
                        <td width="150px" align="left" >
                            Tên sản phẩm
                        </td>
                        <td>
                            <input type="text" style="width: 150px" name="tenSanPham"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="150px" align="left" >
                            Hình sản phẩm
                        </td>
                        <td>
                            <script src="http://dl.javafx.com/1.3/dtfx.js"></script>
                            <script>
                                javafx(
                                {
                                    archive: "/WebsiteBanHang/Admin/subPages/UploadFile.jar",
                                    draggable: true,
                                    width: 275,
                                    height: 20,
                                    code: "uploadfile.Main",
                                    name: "UploadFile"
                                }
                            );
                            </script>
                        </td>
                    </tr>
                    <tr bgcolor="bisque">
                        <td width="150px" align="left">
                            Danh mục
                        </td>
                        <td>
                            <div id="danhMucSanPham">
                                <select id="selectDanhMucSanPham" name="danhMucSanPham"></select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td width="150px" align="left" >
                            Giá bán
                        </td>
                        <td>
                            <input type="text" style="width: 150px" name="giaBan"/>
                        </td>
                    </tr>
                    <tr bgcolor="bisque">
                        <td width="150px" align="left" >
                            Xuất xứ
                        </td>
                        <td>
                            <input type="text" style="width: 150px" name="xuatXu"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="150px" align="left" >
                            Thông tin bảo hành
                        </td>
                        <td>
                            <input type="text" style="width: 250px" name="thongTinBaoHanh"/>
                        </td>
                    </tr>
                    <tr bgcolor="bisque">
                        <td width="150px" align="left" >
                            Nhà sản xuất
                        </td>
                        <td>
                            <div id="themHangSanXuat">
                                <select id="selectThemHangSanXuat" name="hangSanXuat"></select> &nbsp; &nbsp;
                                <input type="button" name="btnThemNhaSanXuat" value="Thêm mới" onclick="themHangSanXuat();"/>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td width="150px" align="left" >
                            Nhà phân phối
                        </td>
                        <td>
                            <div id="themNhaPhanPhoi">
                                <select id="selectThemNhaPhanPhoi" name="nhaPhanPhoi"></select> &nbsp; &nbsp;
                                <input type="button" name="btnThemNhaPhanPhoi" value="Thêm mới" onclick="themNhaPhanPhoi();"/>
                            </div>                          
                        </td>
                    </tr>
                    <tr bgcolor="bisque">
                        <td width="150px" align="left" >
                            Loại sản phẩm
                        </td>
                        <td>
                            <select id="nhomSanPham" name="nhomSanPham">
                            </select> &nbsp; &nbsp; <input type="button" name="btnRefesh"  value="Refesh" id="refeshNhomSanPham"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td width="100%">
                <table width="100%" id="tableThongTinChiTiet">
                    <tr>
                        <td>
                            <span style="padding-left: 20px"><font size="+1" color="RED">Thông tin chi tiết</font> </span>
                        </td>
                    </tr>
                    <tr >
                        <td id="thongTinChiTiet" align="center">                            
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
